{% extends "base.html" %}
{% block title %}修改密码{% endblock %}
{% block content %}
<div class="row text-center vertical-middle-sm">
<h1>修改密码</h1>
<p>请输入你的旧密码</p>
{% if form.new_password.help_text %}
<div class="text-left" style="margin-left:400px">
    <p>这{{form.new_password1.help_text|safe}}</p>
</div>
{% endif %}

<form class="form-horizontal" action="."method="post">
    {% csrf_token %}
    <div class="from-group">
        <label class="col-md-5 control-label text-right">
            {{form.old_password1.label_tag}}
        </label>
        <div class="col-md-6 text-left">{{form.old_password1}}</div>
    </div>

    <div class="form-group">
        <label class="col-md-5 control-label text-right">
            {{form.new_password2.label_tag}}
        </label>
        <div class="col-md-6 text-left">{{form.new_password1.label_tag}}</div>
    </div>
    <input type="submit" value="重置密码" class="btn btn-primary btn-lg"/>
</form>
</div>
{% endblock %}